package com.lzx.adx.report.enums;

public enum YiduiCovertHWEventTypeEnums {

    register("y002", "register", "注册"),
    firstPurchase("y004", "retain", "次留");




    private String yiduiCode;

    /**
     * elm
     */
    private String hwCode;
    private String msg;

    YiduiCovertHWEventTypeEnums(String yiduiCode, String hwCode, String msg) {
        this.yiduiCode = yiduiCode;
        this.hwCode = hwCode;
        this.msg = msg;
    }

    public String getYiduiCode() {
        return yiduiCode;
    }

    public String getHwCode() {
        return hwCode;
    }

    public String getMsg() {
        return msg;
    }


    public static String getHWCode(String productCode) {
        YiduiCovertHWEventTypeEnums[] qttWBEnums = YiduiCovertHWEventTypeEnums.values();
        for (YiduiCovertHWEventTypeEnums qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getYiduiCode().equals(productCode)) {
                return qttWBEnum.hwCode;
            }
        }
        return null;
    }


}
